package com.app.base.service.auth.service;

import com.app.base.model.dto.RegisterPageDto;
import com.app.base.model.vo.UsCoVo;
import com.app.base.service.auth.entity.SysUser;
import com.app.base.utlis.result.Result;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * auth
 * @author yuhag
 * @since 2022-05-07
 */
public interface SysUserService extends IService<SysUser> {

    Result login(SysUser user);

    Result info(String token);

    Result getToken();

    String getCompanyId(String userId);

    Result register(RegisterPageDto registerPageDto);

    UsCoVo getUserCompanyInfo(HttpServletRequest request);
}
